package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.PoliceCallNameSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.PoliceCallName;
import com.enjoyor.soa.traffic.core.tsms.mapper.IPoliceCallNameMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

@Service
@Transactional
public class PoliceCallNameMapper extends BaseMapper<PoliceCallName> implements IPoliceCallNameMapper {

	@Override
	public Page getPoliceCallNamePage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(PoliceCallNameSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<PoliceCallName> getPoliceCallNameList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(PoliceCallNameSqlId.SQL_SELECT_LIST), map);
	}

}